//声明数组
let arr = [1,2,5,10,52,49,2,1];

//导入模块
const {average, max} = require('./arr-utils');
const uniq = require('uniq');
//本质
// const uniq = require('./node_modules/uniq/uniq.js')

//计算平均值
// console.log(average(arr));
//计算最大值
// console.log(max(arr));
//数组去重
console.log(uniq(arr));
